package org.dawning.bubble.account;

import lombok.extern.log4j.Log4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by miou on 2017/6/26 0026.
 */
@SpringBootApplication
@EnableResourceServer
@RestController
@RequestMapping("/account")
@Log4j
public class AccountApplication {

    public static void main(String[] args) {
        SpringApplication.run(AccountApplication.class);
    }

    @RequestMapping("/get")
    public String get(){
        log.info("hello,world");
        return "hello,world";
    }

}
